home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 151-175 / scopedisk171 / nhostbbs / host.doc < prev    next >
Text File  |  1995-03-19  |  17KB  |  395 lines

  1.                 ===============================
  2.                 NComm Host Script Documentation
  3.                 ===============================
  4.            Doc ver 3, for script 2.10E, date 90-10-14
  5.  
  6.    The NComm Host Script was written by Daniel Bloch 1989.
  7.  The NComm Host Script eXtended (ver 2.00Enad and up) was written by
  8.                      Nils-Arne Dahlberg 1990
  9.    Documentation written by Torkel Lodberg and Nils-Arne Dahlberg
  10.  
  11.       This is the third "official" english release, the things that have
  12. changed since 2.06E is not many, but some nasty bugs have been removed.
  13. For more info about them, see the script. The new features is described
  14. later in this document. I have also made some corrections (sigh) from
  15. the erlier version.
  16.  
  17.    The archive is released in two ways:
  18.    HostxxxE.lzh, where xxx is the current scriptversion, only includes
  19. the script and this document
  20.    NHSXxxxE.lzh, where xxx still is the current script version, is a
  21. complete setup with all directories as in the script.
  22.  
  23.    The original plan was to implement the NComm host mode as a part
  24. of the NComm program, but, since the program would grow _large_,
  25. the host mode was implemented as a script. Of course, the NComm
  26. script language had to be enhanced, and functions specifically
  27. needed for the project were implemented. The result is one of
  28. the most powerful host modes available by any communication
  29. program...
  30.  
  31.                 How to set up NHS
  32.                 =================
  33.  
  34.    Before setting up NHS, please assure that the following files are
  35. available; 'C:LIST', 'C:DELETE', 'C:FILENOTE', 'C:EXECUTE', 'C:COPY' and
  36. one of 'LHarc', 'Arc', or 'Zoo'.
  37.  
  38.    To set up NHS, a few changes have to be made to the 'host.script'.
  39. All variables that need to be maintained have been placed at top
  40. of the script. First, a few directory names have to be defined. All
  41. directory names should end with a colon or a slash, and the directories
  42. must exist before you start using the script.
  43.  
  44.    The variable '$dir' shall contain the name of the directory where
  45. all miscellaneous files are kept. In other words, this is where
  46. bulletins, menus, messages, textfiles and so on have to rely. The
  47. NComm Host Script will log all user operations in a log file that
  48. will be created in this directory.
  49.  
  50.    The variable '$uldir' shall contain the name of the NHS upload
  51. directory - all files uploaded will be placed here.
  52.  
  53.    The variable '$dldir' shall contain the name of the NHS download
  54. directory - copy the files which shall be available for download
  55. into this directory. Use the command 'FILENOTE' for adding file
  56. descriptions. If '$uldir' and '$dldir' point to the same directory,
  57. files uploaded will be available for download immediately. Otherwise,
  58. the files have to be moved to the '$dldir' directory.
  59.  
  60.    The variables '$apack', '$alist' and '$aextract' is to be set to the
  61. archive program's pack, list end extract commands. The variable '$arch'
  62. should contain the program's default extension.
  63.  
  64.    The variable '$hold' shall contain the name of the NHS hold
  65. directory. All ZOO files extracted will be placed in this directory.
  66. Please notice that existing HOLD files wil be deleted at
  67. initialization, do not store other files in this directory!
  68.  
  69.    Now, a few file names have to been defined. The variable '$holdzoo'
  70. shall contain the name of the temporary hold ZOO file. Files will be
  71. added to this file.
  72.  
  73.    The variable '$tmp' shall contain the name of the temporary text
  74. file used by NHS for file listings and so on.
  75.  
  76.    The variable '$sysop' shall contain the directory containing sysop's name
  77. and password.
  78.  
  79.    The variable '$cosysop' is teh directory containing all cosysop's names.
  80.  
  81.    The variable '$sysname' shall contain the name of your system.
  82.  
  83.    The variable '$doscomm' should contain the directory where the
  84. doscommands sysop and cosysops can execute from remote is placed.
  85.  
  86.    Specify the name of the directory lister in the
  87. variable '$list'.  This will normally be C:List.
  88.  
  89.    The variable '$maxbaud' is to be set to your modems maximum baudrat.
  90.  
  91.    Finally, set the variable '$hostMNPARQ' to "FALSE" if your modem,
  92. does'n support MNP or ARQ error correction. If your no sure, set it
  93. to "FALSE".
  94.  
  95.    A few changes also have to be made to the NComm configuration.
  96. End-Of-Line TX should be set to CR+LF, the character set should be
  97. set to ISO and G&R Host Mode has to be ENABLED. You should use a
  98. two colour screen for faster screen updates. The G&R download dir
  99. MUST be set to the directory specified in the variable '$dldir'.
  100. This is due to Zmodem downloads always being created in the current
  101. download directory. Save the configuration as "host.config" and
  102. place it in the directory used for miscellaneous files. A sample
  103. configuration file has been included.
  104.  
  105.    NHS will display two files at logon. The file "prelog" contains
  106. the actual login text, "postlog" will be displayed after a successful
  107. login... And at the logout NHS will show the file 'logout'. When a new user
  108. is loggin on the file 'NewUser' is showed. Edit them to suit your needs.
  109.  
  110.    All menus are stored as textfiles. The file "menu0" contains
  111. the main menu, "menu1" contains a list of file transfer commands, "menu3"
  112. contains the SYSOP commands, "menu4" is the private mail menu and finally
  113. "menu5" is the messages areas menu. Example files have been (or will
  114. be...) included.
  115.    The second menu-choice is taken from files named .menu0, .menu1,
  116. .menu2, .menu4 and .menu5. There is no .menu3 because the sysop menu
  117. is not reached by more than one or two users anyway.
  118.  
  119.    To install bulletins, simply create files "bull0", "bull1" and
  120. so on. You must also remember to edit the bulletin menu, which
  121. is contained in the text file "menu2". Again, example files have been
  122. included. (or will be...)
  123.  
  124.  
  125.                 Using the NComm Host Script
  126.                 ===========================
  127.  
  128.    Execute the 'host.script' using the Execute Script function.
  129. If all files and directories have been created successfully,
  130. the modem will be initialized and a small menu will appear on
  131. screen. You may enter 'SPACE' (and, at least on scripts up to 2.05,
  132. 'R') for logging on locally. The 'R'-command is for testing the
  133. remote/local check that is included for sysops. Remember to turn off
  134. the modem before logging on local, otherwise the text will be echoed
  135. back from the modem.
  136.  
  137.    The NComm Host Script does not support Page Break, so use
  138. CTRL-S and CTRL-Q for halting / resuming text output.
  139.  
  140.    When logging in, the file 'prelog' will be displayed. The
  141. host will now prompt you for your name. Log on with your SYSOP name
  142. if you want to gain SYSOP privileges, or use another name to log on
  143. as a user. Enter the password that has been configured in the
  144. "host.script" file at the 'Password' prompt. The second time you enter
  145. an uncorrect password, you will be thrown off the board. You will also
  146. be thrown off the board after 5 minutes of inactivity. If you used
  147. the correct password, the file 'postlog' will be displayed...
  148.  
  149.    Press 'Enter' to continue - NHS will now display the main menu.
  150. Here is a description of the different commands available;
  151.  
  152. MAIN MENU                                                  File; "menu0"
  153. ========================================================================
  154. <B>     Bulletines
  155.                         Displays  the  bulletin  menu.  A description of
  156.                         bulletin menu commands follows further down.
  157.  
  158. <C>     Comments to sysop
  159.                         Enters  comment  into system.  Prompts you for a
  160.                         subject.   You  will  then  enter  a simple line
  161.                         editor  that  must  be  used  for  entering your
  162.                         comment.   Press  CTRL-Z  on  a  blank line when
  163.                         finished.  The message will be added to the file
  164.                         'comments'  -  it can be read by using the SYSOP
  165.                         command [R]ead private messages.
  166.  
  167. <E>     Read and Write private messages
  168.                         Goto teh Private Mail menu.
  169.  
  170. <F>     File-menu
  171.                         Displays  the  file menu.  A description of file
  172.                         menu commands follows further down.
  173.  
  174. <G>     Log out
  175.                         Brings up a prompt asking you if you want to log
  176.                         off  the  system or not.  The hangup string will
  177.                         be  sent to the modem if the answer is positive.
  178.                         NHS will start waiting for the next caller.
  179.  
  180. <L>     List Users
  181.                         Prints a list of all users, and with thier status.
  182.                         The status is written into the textfile and can be
  183.                         changed by the sysop. The status have no effect
  184.                         on the program.
  185.  
  186. <M>     Messages menu
  187.                         Jump to a submenu for messages.
  188.  
  189. <O>     Page operator
  190.                         Will  ring  the bell for SYSOP at local console.
  191.                         When  chatting,  you may return to the main menu
  192.                         by pressing CTRL-Z.
  193.  
  194. <P>     Change Password
  195.                         Used if you want to change your password. You are
  196.                         asked to input it twice to make sure that you
  197.                         haven't done any spellingmisstakes.
  198.  
  199. (S)     Sysop functions
  200.                         Only available for SYSOP and cosysop. Displays
  201.                         the SYSOP menu. A description of SYSOP menu
  202.                         commands follows further down.
  203.                         This entry isn't in the menu, but it still works.
  204.  
  205.  
  206. <V>     View version number
  207.                         Outputs the current version of the script. It
  208.                         was actually first just placed there for testing
  209.                         purposes, but it's easier to leave it than risk
  210.                         messing things up removing it...
  211.  
  212. FILE MENU                                                  File; "menu1"
  213. ========================================================================
  214.  
  215. <ADD> file to HOLD
  216.                             Prompts  you  for  a filename. The file will
  217.                             be added to the HOLD directory.
  218.  
  219. <DIR> List files in HOLD
  220.                             Displays the contents of the HOLD directory.
  221.  
  222. <EXT>ract packed file to HOLD
  223.                             Prompts you  for  a  filename. The file must
  224.                             have  the extension $arch. The file will be
  225.                             extracted into the HOLD directory.
  226.  
  227. <DEL>ete file(s) from HOLD
  228.                             Prompts you for a filename. The file will be
  229.                             deleted from the HOLD directory.
  230.  
  231. <GET> files in HOLD
  232.                             Packs  the  contents  of  the HOLD directory
  233.                             into the hold packed  file. The command will
  234.                             prompt   you   for  the  preferred  transfer
  235.                             protocol (Xmodem / YModem / Zmodem /
  236.                             Ymodem-Batch / YModem-G), and the transfer
  237.                             will start.
  238.  
  239. <L>ist files
  240.                             Lists the contents of the download directory
  241.                             using  the  command specified in the '$list'
  242.                             variable.
  243.  
  244. <D>ownload file
  245.                             Prompts  you  for  a  filename  and transfer
  246.                             protocol (Xmodem / YModem / Zmodem /
  247.                             Ymodem-Batch / YModem-G), and the transfer
  248.                             will start.
  249.  
  250. <U>pload file
  251.                             Prompts  you  for  a  filename  and transfer
  252.                             protocol (Xmodem / YModem / Zmodem /
  253.                             Ymodem-Batch / YModem-G), and the transfer
  254.                             will start.
  255.  
  256. <V>iew packed file
  257.                             Prompts  you  for  a filename. The file must
  258.                             have  the  extension . The contents of
  259.                             the file will be displayed on screen.
  260.  
  261. <Q>uit
  262.                             Quits to main menu.
  263.  
  264.  
  265.  
  266. BULLETIN MENU                                              File; "menu2"
  267. ========================================================================
  268.  
  269. <xx>
  270.          Displays bulletin #xx on screen. The file 'BULLxx' must exist.
  271.  
  272. <Enter> or <Q>
  273.          Quits to main menu.
  274.  
  275.  
  276. SYSOP MENU                                                 File; "menu3"
  277. ========================================================================
  278.  
  279. <B>ackup
  280.                          Starts a remote backup-sequence.
  281.  
  282. <R>ead private messages
  283.                          Displays  the  file  'comments' on screen.  All
  284.                          user comments are contained here.
  285.  
  286. <L>ist user log
  287.                          Displays the file 'log' on screen. The log file
  288.                          contains  a  list  of  all user operations that
  289.                          have been made.
  290.  
  291. <D>elete user log
  292.                          Asks for a confirm. Deletes the file 'log' from
  293.                          disk and creates a blank log file.
  294.  
  295. <C>omments delete
  296.                          Asks for a confirm. Deletes the file 'comments'
  297.                          from disk and creates a blank comments file.
  298.  
  299. <Q>uit to main menu
  300.                          Quits to main menu.
  301.  
  302. <S>tart another script
  303.                          Starts another script, just a experimental thing.
  304.  
  305.  
  306. Above this, you can input a DOS-command wich will be executed and the result
  307. will be outputed too the screen. Which commands you can execute is depending
  308. on the scriptsetup. (See Above.)
  309.  
  310. Private Mail                                         Menu4;
  311. ==================================================================
  312. <Q>  To Main menu
  313.                         Quits to main menu.
  314.  
  315. <R>  Read letters to you
  316.                         Read the letters to you.
  317.  
  318. <W>  Write a letter to someone
  319.                         Write a letter to someone. You have to input the
  320.                         Name of the reciver and a subject. You  will
  321.                         then enter a simple line editor that must be used
  322.                         for  entering your message. Press CTRL-Z on a
  323.                         blank line when finished. The message will be
  324.                         added to the file '<reciversname>' - it can be
  325.                         read by using the command <R>ead letters.
  326.  
  327. <E>  Erase all letters to you
  328.                         Ask for confirmation and if ok, erases yor messages
  329.                         file.
  330.  
  331. <G>  Grab all messages and letters in a file
  332.                         First, copies your messages to hold, and asks if the
  333.                         same shall be done with areamessages and bulletines.
  334.                         The messages are packed and sent as a binary file.
  335.  
  336. Boringtowns BBSs Areamenu:
  337. ==========================
  338. <xx> Different messagesareas
  339.  
  340. <R> Read messages
  341.                         Asks for wich area and sends that asciifile.
  342.  
  343. <W> Write messages
  344.                         Asks for wich area and reciver of message. After
  345.                         that you are asked to input a subject. The message-
  346.                         entering are made in the same way as comment to
  347.                         sysop. (See Above)
  348. <Q> Back to Main menu
  349.                         You should know this by now, really.
  350.  
  351.  
  352.   Some new features (2.10)
  353.  
  354.    If you want another program to stop NHSx, without just throwing a
  355. possible user away, do it this way:
  356.    Let the program create a file called "RAM:C/NHSQUIT" and place the
  357. delete command in ram:c. Then you just let the program wait until the
  358. file "RAM:C/NHSQUIT" doesnt exists and go on after that. One possible
  359. use of this is if you want to use your computer for automatic phone-
  360. calls at certain times (using it as a fido-point or fido-host).
  361.  
  362.    You can, from the sysop menu, now start a ncomm-script. This is 
  363. purely exprimental, and you cant get back to the BBS, but I'll think
  364. of some use :-).
  365.    This script MUST end with the line:
  366.    CHAIN Host2.10E.script
  367. To restart the BBS. An example, do-nothing, script is included.
  368.  
  369.  
  370.  
  371.  
  372. Things changed since version 1.3 of the script is:
  373.  
  374.  * All users have thier own password
  375.  
  376.  * Cosysop status added
  377.  
  378.  * All of NComms protocols is supported
  379.  
  380.  * Private messages to/from all users
  381.  
  382.  * Multiple messages areas
  383.  
  384.  * A remote-backup function added
  385.  
  386.  * Possibility to choose archive program by sysop
  387.  
  388. Added since 2.06E
  389.  
  390.  * Possibility to let another program break the script
  391.  
  392.  * The sysop or cosysop can start another script from the sysop menu
  393.     This is just an experimental feature without use, yet...
  394.  
  395.